export const PREFIX = 'inbiz-MemberSelect';

export const DEFAULT_PAGE_SIZE = 10;

export enum TabKey {
  Department = 'department',
  Position = 'position',
  Group = 'group',
  User = 'user',
}

export enum ServiceTabKey {
  Department = 'Dept',
  Position = 'Position',
  Group = 'Group',
  User = 'User',
}

export const tabsData = [
  {
    id: 'eformMemberSelectDepartment',
    isEdit: true,
    isHide: true,
    isDel: false,
    title: 'MemberSelect.lang.personTabs.department',
    titleDisplayFormat: 'department',
    memberKey: 'department',
  },
  {
    id: 'eformMemberSelectPosition',
    isEdit: true,
    isHide: true,
    isDel: false,
    title: 'MemberSelect.lang.personTabs.position',
    titleDisplayFormat: 'position',
    memberKey: 'position',
  },
  {
    id: 'eformMemberSelectUserGroup',
    isEdit: true,
    isHide: true,
    isDel: false,
    title: 'MemberSelect.lang.personTabs.userGroup',
    dataRange: {
      type: 'all',
      data: [],
    },
    memberKey: 'group',
  },
  {
    id: 'eformMemberSelectUser',
    isEdit: true,
    isHide: true,
    isDel: false,
    title: 'MemberSelect.lang.personTabs.user',
    positionSelect: false,
    departmentUserGroup: ['department'],
    // departmentSelector: [],
    departmentDisplayFormat: 'name',
    userGroupSelector: {
      type: 'all',
      data: [],
    },
    userGroupDisplayFormat: 'name',
    memberKey: 'user',
  },
];
